.class public Lcom/xingbook/park/activity/FilterActivity;
.super Lcom/xingbook/park/activity/BaseActivity;


# static fields
.field private static e:Lcom/xingbook/park/b/a;


# instance fields
.field a:Lcom/xingbook/park/ui/n;

.field private b:Landroid/widget/ListView;

.field private c:Landroid/widget/RelativeLayout;

.field private d:Lcom/xingbook/park/ui/l;

.field private f:Lcom/xingbook/park/a/m;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    new-instance v0, Lcom/xingbook/park/activity/s;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/s;-><init>(Lcom/xingbook/park/activity/FilterActivity;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->a:Lcom/xingbook/park/ui/n;

    return-void
.end method

.method public static a(Landroid/content/Context;Lcom/xingbook/park/b/a;)V
    .locals 3

    const/4 v2, 0x6

    if-nez p1, :cond_0

    const-string v0, "\u7b5b\u9009\u6570\u636e\u4e0d\u5b58\u5728"

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/FilterActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    sput-object p1, Lcom/xingbook/park/activity/FilterActivity;->e:Lcom/xingbook/park/b/a;

    instance-of v1, p0, Landroid/app/Activity;

    if-nez v1, :cond_1

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :cond_1
    instance-of v1, p0, Lcom/xingbook/park/activity/BaseActivity;

    if-eqz v1, :cond_2

    check-cast p0, Lcom/xingbook/park/activity/BaseActivity;

    invoke-virtual {p0, v0, v2}, Lcom/xingbook/park/activity/BaseActivity;->a(Landroid/content/Intent;I)V

    goto :goto_0

    :cond_2
    instance-of v1, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;

    if-eqz v1, :cond_3

    check-cast p0, Lcom/xingbook/park/activity/BaseFragmentActivity;

    invoke-virtual {p0, v0, v2}, Lcom/xingbook/park/activity/BaseFragmentActivity;->a(Landroid/content/Intent;I)V

    goto :goto_0

    :cond_3
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method


# virtual methods
.method public e()Ljava/lang/String;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 8

    const/4 v5, 0x0

    const/4 v7, -0x1

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FilterActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    new-instance v0, Landroid/widget/RelativeLayout;

    invoke-direct {v0, v6}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->c:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v7}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/FilterActivity;->setContentView(Landroid/view/View;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FilterActivity;->c:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/park/activity/FilterActivity;->a:Lcom/xingbook/park/ui/n;

    const/4 v4, 0x1

    move-object v0, p0

    invoke-static/range {v0 .. v5}, Lcom/xingbook/park/ui/l;->a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/n;ZZ)Lcom/xingbook/park/ui/l;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->d:Lcom/xingbook/park/ui/l;

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->d:Lcom/xingbook/park/ui/l;

    const v1, 0x7f0a0019

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/l;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->d:Lcom/xingbook/park/ui/l;

    const-string v1, "\u7b5b\u9009"

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/l;->setTitle(Ljava/lang/String;)V

    new-instance v0, Landroid/widget/ListView;

    invoke-direct {v0, v6}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->b:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->b:Landroid/widget/ListView;

    const v1, 0xffffff

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setCacheColorHint(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->b:Landroid/widget/ListView;

    const v1, 0x7f070043

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelector(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, v5}, Landroid/widget/ListView;->setDividerHeight(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v7, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v1, 0x3

    iget-object v2, p0, Lcom/xingbook/park/activity/FilterActivity;->d:Lcom/xingbook/park/ui/l;

    invoke-virtual {v2}, Lcom/xingbook/park/ui/l;->getId()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FilterActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->c:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/activity/FilterActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/park/a/m;

    invoke-direct {v0, p0}, Lcom/xingbook/park/a/m;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->f:Lcom/xingbook/park/a/m;

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->f:Lcom/xingbook/park/a/m;

    sget-object v1, Lcom/xingbook/park/activity/FilterActivity;->e:Lcom/xingbook/park/b/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/park/a/m;->a(Lcom/xingbook/park/b/a;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FilterActivity;->b:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/xingbook/park/activity/FilterActivity;->f:Lcom/xingbook/park/a/m;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    return-void
.end method
